import  request from 'axios'
// 查询人气商品
export const popularListApi = (page,size) => {
    return request({
        url: "http://47.102.218.109:8082//tb_popular/findByPage/"+ page + '/' + size,
        method: 'get'
    })
}
//  删除
export const popularDelectApi = (row) => {
    return request({
        url: "http://47.102.218.109:8082//tb_popular/deleteByIds",
        method: 'post',
        data:row
    })
}
//  添加
export const popularAddApi = (row) => {
    return request({
        url: "http://47.102.218.109:8082//tb_popular/addpopular",
        method: 'post',
        data:row
    })
}
//  修改
export const popularChangeApi = (row) => {
    return request({
        url: "http://47.102.218.109:8082//tb_popular/updatepopular",
        method: 'post',
        data:row
    })
}
